package com.njwt.cloud.msconsumer;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
//降级
@EnableHystrix
//线程隔离
@EnableCircuitBreaker
@SpringBootApplication

/**
 *   该项目是注册中心的客户端，需要连接上注册中心
 */

@EnableEurekaClient
public class MsFeignHystrixConsumerOrderApplication {

    public static void main(String[] args) {
        SpringApplication.run(MsFeignHystrixConsumerOrderApplication.class, args);
    }

}
